<?php

namespace app\task;

use app\provider\SnsTokenProvider;
use zhanshop\App;

class SnsTokenTask
{

    public function generate()
    {

        $host = App::config()->get('cache')['connections']['default']['host'];
        if(strpos($host, 'server') !== false){
            App::make(SnsTokenProvider::class)->setHuawei();
            App::make(SnsTokenProvider::class)->setVivo();
        }
    }
}